package com.gyms.manager;

import com.classic.okhttp.beans.HVVenueFieldBean;

import java.util.List;

/**
 * ltx on 2016/11/17 11:09
 * 座位的manger
 */
public class SeatFieldManger {
    private static SeatFieldManger instance = null;
    //场馆场地信息集合
    private List<HVVenueFieldBean> mVenueFieldList;
    private SeatFieldManger() {

    }

    public static SeatFieldManger getInstance() {
        if (instance == null) {
            instance = new SeatFieldManger();
        }
        return instance;
    }

    /**
     * 根据Id查询场地名称
     * @param mFiledId 场地ID
     */
    public String searchNameById(String mFiledId){
        String mFildName="";
        for(HVVenueFieldBean mHVVenueFieldBean:mVenueFieldList){
            if(mHVVenueFieldBean.getVenueFieldId().equals(mFiledId)){
                mFildName=mHVVenueFieldBean.getVenueFieldName();
            }
        }
        return mFildName;

    }

    public void setVenueFieldList(List<HVVenueFieldBean> venueFieldList) {
        mVenueFieldList = venueFieldList;
    }
}
